import cn.hutool.core.util.NumberUtil;
import ws.schild.jave.Encoder;
import ws.schild.jave.EncoderException;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

public class Run {
    public static void main(String[] args) {
        codec();
    }


    public static void codec() {
        Encoder encoder = new Encoder();
        try {
            for (int i = 0; i < encoder.getAudioEncoders().length; i++) {
                System.out.println(encoder.getAudioEncoders()[i].toString());
            }
        } catch (EncoderException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }

    public static List<Integer> addNum(int num) {
        List<Integer> r = new ArrayList<>(Collections.singleton(num));
        if (num > 0) {
            r.addAll(addNum(--num));
        }
        return r;

    }

    public static void random() {
        Integer[] randoms = NumberUtil.generateBySet(0, 5, 5);
        System.out.println(Arrays.toString(randoms));
        System.out.println(randoms.length);
    }

}
